//
//  DKFancyLabel.h
//  Whistle
//
//  Created by ZhangAo on 15/12/31.
//  Copyright © 2015年 BookSir. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DKFancyLabel : UILabel

// 识别电话
- (void)recognizePhone:(NSDictionary *)phoneAttributes tapBlock:(void(^)(NSString *phone))tapBlock;

// 识别邮箱
- (void)recognizeMail:(NSDictionary *)mailAttributes tapBlock:(void(^)(NSString *mail))tapBlock;

// 识别 URL
- (void)recognizeURL:(NSDictionary *)URLAttributes tapBlock:(void(^)(NSString *URL))tapBlock;

// 点击 Link
- (void)tapLinkBlock:(void (^)(NSString *URL))tapBlock;

// 点击自定义 NSLinkAttributeName
- (void)customLinkBlock:(void (^)(NSString *URL))customLinkBlock;

- (void)tapAttachmentBlock:(void (^)(NSTextAttachment *attachment))tapBlock;

@end
